arithmetic progressions in one shot